package com.htfyun.serialport.uartservo;

public abstract class IServoCommand {

    protected final static String TAG = IServoCommand.class.getSimpleName();

    protected byte[] id = {(byte) 1};
    protected byte[] instruction;
    protected byte[] parameters;
    protected byte[] checkSum;


    public byte[] getId() {
        return id;
    }

    public byte[] getInstruction() {
        return instruction;
    }

    public byte[] getParameters() {
        return parameters;
    }

    public byte[] getCheckSum() {
        return checkSum;
    }

    public void setId(byte[] id) {
        this.id = id;
    }

    public void setInstruction(byte[] instruction) {
        this.instruction = instruction;
    }

    public void setParameters(byte[] parameters) {
        this.parameters = parameters;
    }

    public abstract byte[] buildForCommand();

    abstract  public byte[] getHeader();


}
